package po;

import java.io.Serializable;
import java.util.*;

public class SalesPO implements Serializable{
	private static final long serialVersionUID = -881573457940149343L;
	
	private int salesID;
	private String username;
	private ArrayList<BookPO> books = new ArrayList<BookPO>();
	private ArrayList<Integer> numbers = new ArrayList<Integer>();
	private double totalPrice;
	private double offsetQuota;
	private int offsetTicketNumber;
	private double discountRate;
	private boolean discountTicket;
	private double realPrice;
	
	
	public SalesPO(int salesID, String username, ArrayList<BookPO> books,
			ArrayList<Integer> numbers, double totalPrice, double offsetQuota,
			int offsetTicketNumber, double discountRate,
			boolean discountTicket, double realPrice) {
		this.salesID = salesID;
		this.username = username;
		this.books = books;
		this.numbers = numbers;
		this.totalPrice = totalPrice;
		this.offsetQuota = offsetQuota;
		this.offsetTicketNumber = offsetTicketNumber;
		this.discountRate = discountRate;
		this.discountTicket = discountTicket;
		this.realPrice = realPrice;
	}

	public int getSalesID() {
		return salesID;
	}
	
	public String getUsername() {
		return username;
	}
	
	public ArrayList<BookPO> getBooks() {
		return books;
	}
	
	public ArrayList<Integer> getNumbers() {
		return numbers;
	}

	public double getTotalPrice() {
		return totalPrice;
	}
	
	public double getOffsetQuota() {
		return offsetQuota;
	}
	
	public int getOffsetTicketNumber() {
		return offsetTicketNumber;
	}
	
	public double getDiscountRate() {
		return discountRate;
	}
	
	public boolean useDiscountTicket() {
		return discountTicket;
	}
	
	public double getRealPrice() {
		return realPrice;
	}	
}
